<html> 
  <head> 
        <meta charset="utf-8"> 
        <title>HelloWorld</title> 
  </head> 
    <body> 
        <p>Hello World 1</p>
        <p>Hello World 2</p>
        <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> 
        <script>
        	//将所有p标签的内容都设置成:www.ourd3js.com,并返回所选择的元素集合
        	var plist=d3.select("body").selectAll("p").text("www.ourd3js.com");   
        	//修改段落的颜色和字体大小
        	plist.style('color','red').style('font-size','30px')
        </script> 
    </body> 
</html>